//创建person类的对象,设置该对象的name,age,gender属性
//调用study属性 输出字符串"studying";
//调用showAge方法,返回age值;
//调用addAge(int addAge)方法给对象的age属性增加addAge岁,如两岁
public class Person {
    int age;
    String name;
    String gender;

    public void study(){
        System.out.println("studying");
    }
    public int showAge(){
        return age;

    }
    public int addAge(int num){
        return age+num;
    }

}
